﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
                assembly="Inovout.Cloud.DataWarehouse"
				       namespace="Inovout.Cloud.DataWarehouse.Models">

  <joined-subclass name="DataCollectionRelationProperty" extends="DataCollectionProperty" table="DataWarehouse_DataCollectionRelationProperty">
    <key column="DataCollectionRelationPropertyId" />
    <many-to-one name="RelationDataCollection" column="RelationDataCollectionId" foreign-key="FK_RelationDataCollection_DataCollection"/>
    <set name="Conditions" cascade="all">
      <key column="DataCollectionRelationPropertyId" />
      <one-to-many class="DataCollectionRelationCondition" />
    </set>

  </joined-subclass>
</hibernate-mapping>


